package cn.hl.sentinel;

import cn.hl.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderBlockHandler {

    public static User getUserById(@PathVariable("id") Long id, BlockException e) {
        return new User(-1L,"限流","请求处理不过来了！");
    }

}
